package com.heima.estatemanagement.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heima.estatemanagement.domain.TbCar;
import com.heima.estatemanagement.service.TbCarService;
import com.heima.estatemanagement.mapper.TbCarMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 86191
 * @description 针对表【tb_car(车辆表)】的数据库操作Service实现
 * @createDate 2023-02-08 14:14:08
 */
@Service
public class TbCarServiceImpl extends ServiceImpl<TbCarMapper, TbCar>
        implements TbCarService{
    @Autowired
    private TbCarMapper carMapper;
    @Override
    public List<TbCar> selectByOwnerId(int ownerId) {
        return carMapper.selectByOwnerId(ownerId);
    }
}




